package com.myjavalab.dotsandboxes;

public class Util {

	public static boolean isOdd(int i){
		if(i%2 == 1) 
			return true;
		return false;
	}
	
	public static boolean isAvailable(String[] arr, int max){
		if(arr[0] != "H" && arr[0] != "V")
			return false;
		for(int i = 1; i < arr.length; i++){			
			if(Integer.valueOf(arr[i]) < 1 || Integer.valueOf(arr[1]) > max){
				return false;
			}
		}
		return true;
	}
}
